﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;

namespace BUS
{
    public class SACHBUS
    {
        public bool themsach(SACHDTO sDTO)
        {
            SACHDAO sDAO = new SACHDAO();
            return sDAO.themsach(sDTO);
        }

        public int update(string sql, DataSet dataset)
        {
            SACHDAO sDAO = new SACHDAO();
            return sDAO.update(sql, dataset);
        }
        public DataTable Bangsach()
        {
            DataTable datatable = new DataTable();
            SACHDAO sDAO = new SACHDAO();
            datatable = sDAO.Bangsach();
            return datatable;
        }

        public string masach(string matheloai, string tensach, string matacgia, string quyenso, bool co)
        {
            SACHDAO sDAO = new SACHDAO();         
            string kq = sDAO.masach(matheloai,tensach,matacgia,quyenso,co);
            return kq;
        }
    }
}
